import { createApp } from 'vue';

import axios from 'axios';
import Moment from 'moment';
import Swal from 'sweetalert2';
import VueClipboard from 'vue-clipboard-plus';
import 'vue-fullpage.js/dist/style.css';
// import './fullpage.scrollHorizontally.min' // Optional. When using fullpage extensions
import VueFullPage from 'vue-fullpage.js';

import 'normalize.css/normalize.css';
import 'sweetalert2/src/sweetalert2.scss';

import App from './App.vue';
import router from './router';

const app = createApp(App);

app.use(VueClipboard);
app.use(VueFullPage);

app.use(router);

// https://sweetalert2.github.io/
app.config.globalProperties.$Swal = Swal;
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$moment = Moment;
app.config.globalProperties.$moment.locale('zh-cn');

app.mount('#app');
